export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}

//已有医院数据的类型
export interface Hospital {
    id: string,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: {
        hostypeString: string,
        fuallAddress: string
    },
    hoscode: string,
    hosname: string,
    hostypeStringprovinceCode: string,
    cityCode: string,
    districtCode: string,
    adress: string,
    logoData: string,
    intro: string,
    router: string,
    status: number,
    bookingRule: {
        cycle: number,
        releaseTime: string,
        stopTime: string,
        quitDay: number,
        quitTime: string
        rule: string
    }
}

//存储全部已有医院的数组类型
export type Content = Hospital[]

//获取已有医院接口返回的数据类型
export interface HospitalResponseData extends ResponseData {
    data: {
        content: Content,
        pageable: {
            sort: {
                sorted: boolean,
                unsorte: boolean,
                empty: boolean,
            },
            pageNumber: number
            pageSize: number
            offset: number
            paged: boolean,
            unpaged: boolean
        },
        totalPages: number,
        totalElements: number,
        last: boolean,
        first: boolean,
        sort: {
            sorted: boolean,
            unsorted: boolean,
            empty: boolean
        },
        numberOfElements: number
        size: number
        number: number
        empty: boolean,
    }
}

//代表医院等级或地区数据
export interface HospitalLevelAndRegion {
    createTime: string,
    dictCode: string,
    hasChildren: boolean,
    id: number,
    isDeleted: boolean,
    name: string,
    param: {},
    parentId: number,
    updateTime: string,
    value: string,
}

export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]

//获取等级或医院地区接口返回数据类型
export interface HospitalLevelAndRegponseData extends ResponseData {
    data: HospitalLevelAndRegionArr
}

export interface HospitalInfo extends ResponseData {
    data:Content
}